﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ManageGuestOrder.aspx.cs" Inherits="Manageweb_ManageGuestOrder_ManageGuestOrder" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    
<link href="../images/css.css" rel="stylesheet" type="text/css" />
    
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table border="1" cellpadding="0" cellspacing="0" width="750">
            <tr>
                <td style="font-weight: bold; color: white; background-color: #507cd1; text-align: left">
                    &nbsp;管理订单</td>
            </tr>
        </table>
        <br />
        <table border="1" cellpadding="0" cellspacing="0" width="750" id="TABLE_Detail" runat="server">
            <tr>
                <td colspan="4" style="font-weight: bold; color: white; background-color: #507cd1; text-align: left">
                    &nbsp;查看订单详细<asp:Label ID="LB_ID" runat="server" Visible="False"></asp:Label></td>
            </tr>
            <tr>
                <td style=" width:150px;">
                    &nbsp;订购品名</td>
                <td style=" width:225px; text-align: left;">
                    &nbsp;<asp:Label ID="LB_Title" runat="server"></asp:Label></td>
                <td style=" width:150px;">
                    &nbsp;订购姓名</td>
                <td style="text-align: left">
                    &nbsp;<asp:Label ID="LB_Name" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;Email</td>
                <td style="width: 225px; text-align: left">
                    &nbsp;<asp:Label ID="LB_Email" runat="server"></asp:Label>
                </td>
                <td>
                    &nbsp;订购电话</td>
                <td style="text-align: left">
                    &nbsp;<asp:Label ID="LB_Tel" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td>
                    &nbsp;订购数量</td>
                <td style="width: 225px; text-align: left">
                    &nbsp;<asp:Label ID="LB_ItemNumber" runat="server"></asp:Label></td>
                <td>
                    &nbsp;订购IP</td>
                <td style="text-align: left">
                    &nbsp;<asp:Label ID="LB_IP" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td>
                    &nbsp;备注信息</td>
                <td colspan="3" style="text-align: left">
                    &nbsp;<asp:Label ID="LB_Content" runat="server"></asp:Label></td>
            </tr>
        </table>
        <br />
        <asp:Label id="LB_ManageGuestOrder" runat="server" ForeColor="Red" Font-Size="Small" Font-Bold="True"></asp:Label>
        <table border="1" cellpadding="0" cellspacing="0" width="750">
            <tr>
                <td>
                    <asp:GridView ID="GV_OrderList" runat="server" AllowPaging="True" AllowSorting="True"
                        AutoGenerateColumns="False" CellPadding="4" DataKeyNames="GO_ID" DataSourceID="ODS_OrderList"
                        ForeColor="#333333" PageSize="15" Width="100%">
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <Columns>
                            <asp:BoundField DataField="GO_ID" HeaderText="GO_ID" InsertVisible="False" ReadOnly="True"
                                SortExpression="GO_ID" Visible="False" />
                            <asp:BoundField DataField="GO_Title" HeaderText="订购品名" SortExpression="GO_Title" >
                                <ItemStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="GO_ItemNumber" HeaderText="数量" SortExpression="GO_ItemNumber" />
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:LinkButton ID="LBtn_View" runat="server" OnCommand="LBtn_View_Command" CommandArgument='<%# Eval("GO_ID") %>'>查看</asp:LinkButton>
                                    <asp:LinkButton ID="LBtn_Del" runat="server" OnClientClick="return confirm('删除操作不可恢复，是否继续？')" OnCommand="LBtn_Del_Command" CommandArgument='<%# Eval("GO_ID") %>'>删除</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="GO_DateTime" HeaderText="下单时间" SortExpression="GO_DateTime" />
                        </Columns>
                        <RowStyle BackColor="#EFF3FB" />
                        <EditRowStyle BackColor="#2461BF" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                    <asp:ObjectDataSource ID="ODS_OrderList" runat="server" OldValuesParameterFormatString="original_{0}"
                        SelectMethod="GetDataOrderByDateTime" TypeName="AccessDAL.GuestOrderTableAdapters.GuestOrderTableAdapter">
                    </asp:ObjectDataSource>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
